/*
 * XYDoughnut.java
 *
 * Created on September 17, 2004, 1:19 PM
 */

package edu.temple.GUS.MMA.Neighborhoods;

/**
 *
 * @author  jeffleon
 */
public class XYDoughnut extends XYNeighborhood{

    private int innerRadius;
    private int outerRadius;
    
    /** Creates a new instance of XYDoughnut */
    public XYDoughnut(int innerRadius, int outerRadius) 
    {
     // Define the x and y extend of the neighborhood
        super(2*outerRadius+1, 2*outerRadius+1);
        this.innerRadius = innerRadius;
        this.outerRadius = outerRadius;
    }
    
    public int getInnerRadius () { return innerRadius; }
    public int getOuterRadius () { return outerRadius; }

    public void putInnerRadius (int innerRadius) { this.innerRadius = innerRadius; }
    public void putOuterRadius (int outerRadius) { this.outerRadius = outerRadius; }

}

